package com.shadt.sms.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
/**
 * 短信配置表
 * @author SongR
 *
 */
@Entity
@Table(name="sys_sms_config")
public class SysSmsConfig implements Serializable{
	private static final long serialVersionUID = -3995980552325208397L;
	
//	ali.sms.url=http://gw.api.taobao.com/router/rest
//		ali.sms.appkey=24620221
//		ali.sms.secret=de0f5e5513bfd58a97a1fe09174c777a
//		ali.sms.template=SMS_41370016
//		ali.sms.signname=\u5343\u57CE\u667A\u8054
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "sms_id")
	private Long id;//编号
	@Column(name="sms_name")
	private String name;//短信平台名称 ali.sms.signname
	@Column(name="sms_url")
	private String url;//短信平台url ali.sms.url
	@Column(name="sms_userid")
	private String userid;//短信平台用户名 ali.sms.appkey
	@Column(name="sms_account")
	private String account;//短信平台账户 
	@Column(name="sms_password")
	private String password;//短信平台密码 ali.sms.secret
	@Column(name="sms_content")
	private String content;//短信内容(使用javaStringformat 占位符标识验证码位置) ali.sms.template
	@Column(name="sms_status")
	private int status;//状态（-1、删除 0、可用 1、禁用）
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getUserid() {
		return userid;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getAccount() {
		return account;
	}
	public void setAccount(String account) {
		this.account = account;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
}
